package com.hgq.jssjyyxt.mapper;

import com.hgq.jssjyyxt.entity.ForumPosts;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author scj
 * @email scj0725@qq.com
 * @create 2024-04-11 13:53:41
 */
@Repository
public interface ForumPostsMapper extends BaseMapper<ForumPosts> {

    List<Map<String, Object>> selectAll(@Param("forumPosts") ForumPosts forumPosts, @Param("limit") Integer limit,
                                        @Param("page") Integer page,
                                        @Param("userName") String userName);

    Long selectAllCount(@Param("forumPosts") ForumPosts forumPosts,@Param("userName") String userName);

    List<Integer> selectAllIds(@Param("forumPosts") ForumPosts forumPosts, @Param("limit") Integer limit, @Param("page") Integer page,@Param("userName") String userName);

    List<Map<String, Object>> selectAllComments(@Param("ids") List<Integer> ids,@Param("userName") String userName);
}

